module.exports = {
  chainWebpack: config => {
    // 修复HMR
    config.resolve.symlinks(true);
  },
  configureWebpack: {
    resolve: {
      //extensions: ['.js', '.vue', '.json'],
      alias: {
        //"@": "src", //已经配置过
        "assets": "@/assets",
        "common": "@/common",
        "components": "@/components",
        "network": "@/network",
        "views": "@/views",
      }
    }
  },
  devServer: {
    host: 'localhost',
    port: 8080,
    proxy: {
      '/home': {
        target: 'http://123.207.32.32:8000/',
        changeOrigin: true,
        pathRewrite: {
          '^/home': '/home'
        }
      }
    }
  }
}
